﻿/**************************************************************************
* @file :	
* @brief :  tcp服务器
* @author : C0946639 尹志刚
* @version : 1.0.0.1
* @date :	2025/08/11
***************************************************************************/

#ifndef TCPSERVERCONTROLLER_H
#define TCPSERVERCONTROLLER_H

#include <QObject>

#include "Network/networkconfig.h"
#include "Network/tcpserver.h"

namespace Core {

	class TcpServerController : public QObject
	{
		Q_OBJECT

	public:
		explicit TcpServerController(QObject *parent = nullptr);
		~TcpServerController();

		/**
		 * @brief	setCreateServer
		 * @param	strIp
		 * @param	port
		 * @return 
		 */
		bool setCreateServer(QString strIp, int port);

		/**
		 * @brief	setCloseServer
		 * @return 
		 */
		void setCloseServer();

	private:
		Common::TcpServer * m_pTcpServer;
	};

}//namespace Core 

#endif // TCPSERVERCONTROLLER_H